package org.lightmtv.filters;

import internal.internal.ActionHandler;

import java.lang.reflect.Method;

import org.lightmtv.config.BeanFactory;
import org.lightmtv.config.MtvFilter;
import org.lightmtv.request.Request;
import org.lightmtv.response.Response;

public abstract class AbstractMtvFilter implements MtvFilter {

	protected Response invokeAction(BeanFactory beanFactory,Request request,String actionName,String methodName,String[] params){
		return ActionHandler.invokeAction(beanFactory, request, actionName, methodName, params);
	}
	
	protected Response invokeAction(Method method,Object action,Object[] args){
		return ActionHandler.invokeAction(method, action, args);
	}

}
